package com.example.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("product")
public class ProDto {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private BigDecimal originalPrice;
    private BigDecimal sellingPrice;
    private Integer typeId;
    @TableField(exist = false)
    private String typeName;
    private Integer sold;
    private Integer stock;
    private String image;
    private String introduction;
    private Integer points;
    private String details;
    private String proNorm;
    @TableField(exist = false)
    private String[] normList;
    private String state;
    private LocalDateTime createTime;
    @TableField(exist = false)
    private Integer pageNum;
    @TableField(exist = false)
    private Integer pageSize;

}
